-- GENERATED SPELL FOR [Shadowmoon Soldier] --


function spell0_23047(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23047', 608, 1)
end

function Sorts_23047(pUnit, Event)
local choix_sorts_23047 = math.random(0, 0)
if choix_sorts_23047 == 0 then
pUnit:RegisterEvent('spell0_23047', 1, 1)
end
end

function mob23047_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23047', math.random(1500, 3000), 1)
end

function mob23047_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23047_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23047_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23047, 1, 'mob23047_Action')
RegisterUnitEvent(23047, 2, 'mob23047_Leave')
RegisterUnitEvent(23047, 3, 'mob23047_Kill')
RegisterUnitEvent(23047, 4, 'mob23047_Die')
